package demo12;

public class Test {
    public static void main(String[] args) {
        A a = new A();
        a.methodA(new InterA() {
            @Override
            public void showA() {
                System.out.println("我是没有名字的InterA的实现类");
            }
        });
        a.methodA(()->{
            System.out.println("我是有名字的InterA的实现类");
        });
    }
}
